import { Module } from '@nestjs/common';
import { WorksService } from './works.service';
import { WorksController } from './works.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { WorksTagEntity } from '../works-tag/entities/works-tag.entity';
import { WorksEntity } from './entities/work.entity';
import { WorksTagService } from '../works-tag/works-tag.service';
import { AuthModule } from 'src/auth/auth.module';
import { WorksTagModule } from '../works-tag/works-tag.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([WorksEntity, WorksTagEntity]),
    WorksTagModule,
    AuthModule,
  ],
  controllers: [WorksController],
  providers: [WorksService, WorksTagService],
  exports: [WorksService],
})
export class WorksModule {}
